package task3_13;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 8:31
 * @description:
 */
public class Circle extends Shape {
  double r;
  double c=3.14;
  Circle(){}
  Circle(double r){
    this.r=r;
  }

  @Override
  public double area() {
    return c*r*r;
  }

  @Override
  public String getName() {
    return "圆";
  }

  @Override
  public void output() {
    System.out.println(getName()+"面积是："+area());

  }
}
